package ${configs.packagePath}.common;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.MDC;

/**
 * <Description>
 * 基础的返回VO
 * @author Jun Lee
 * @version 1.0
 * @createDate ${date}
 */
@Data
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class R {
    protected Integer code = IBaseResponseCode.SUCCESS_CODE;
    protected String message = IBaseResponseCode.SUCCESS_MESSAGE;
    protected Object data;
    protected String requestId = MDC.get("requestId");

    public static R getInstance(){
        return new R();
    }
}
